﻿using Microsoft.AspNetCore.Mvc;

namespace Server.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class TestController : ControllerBase
    {
        [HttpGet]
        [Route("[action]")]
        public async Task<string> ForPreheat()
        {
            return await Task.FromResult("预热返回结果");
        }

        [HttpGet]
        [Route("[action]")]
        public async Task<string> Get()
        {
            await Task.Delay(2000); //模拟耗时操作
            return "测试返回结果";
        }
    }
}
